#include<stdio.h>
int main()
{
	int I;
	double W;
	scanf("%d",&I);
	/*if(I<=100000)
		W=I*0.1;
	else if(I>100000&&I<=200000)
		W=100000*0.1+(I-100000)*0.075;
	else if(I>200000&&I<=400000)
		W=100000*0.1+100000*0.075+(I-200000)*0.05;
	else if(I>400000&&I<=600000)
		W=100000*0.1+100000*0.075+100000*0.05+(I-400000)*0.03;
	else if(I>600000&&I<=1000000)
		W=100000*0.1+100000*0.075+100000*0.05+100000*0.03+(I-600000)*0.015;
	else 
		W=100000*0.1+100000*0.075+100000*0.05+100000*0.03+400000*0.015+(I-1000000)*0.01;*/
	switch((int)I/100000)
	{
	case 0:W=I*0.1;break;
	case 1:W=100000*0.1+(I-100000)*0.075;break;
	case 2:
	case 3:W=100000*0.1+100000*0.075+(I-200000)*0.05;break;
	case 4:
	case 5:W=100000*0.1+100000*0.075+100000*0.05+(I-400000)*0.03;break;
	case 6:
	case 7:
	case 8:
	case 9:W=100000*0.1+100000*0.075+100000*0.05+100000*0.03+(I-600000)*0.015;break;
	case 10:W=100000*0.1+100000*0.075+100000*0.05+100000*0.03+400000*0.015+(I-1000000)*0.01;break;
	}
	printf("%10.2f\n",W);
	return 0;
}
